價格:免費
更新日期:2017-09-11
檔案大小:9.0M
目前版本:1.2.0
版本需求:Android 4.1 以上版本
官方網站:mailto:cpatarun@gmail.com
Email:https://www.pushprinter.com/sockki
聯絡地址:14 Lauraine Drive, Harrisdale, WA, 6112
Use Sockki to connect to services that have integrated it in order to receive mobile notifications.
Developers, integrate your service with Sockki to push notifications directly to your client's mobile device using a WebSocket server.
Client Setup:
1. Get your server URL and API key from your notification service provider
2. Paste those settings under the "Service" tab and set your notification settings
3. Start the service and connect to the server to start receiving notifications
Developer Setup:
1. Create a websocket server to accept connections from clients
2. Create API keys to issue to each client so that they can be uniquely identified on your server
3. Provide your users with their API key and the server URL
4. When the user starts the service, the client will open up a socket connection with the server
5. After a connection is opened, the client will send JSON message as follows: "{ request: "SockkiClient-Auth", data: API_KEY }"
6. You must create a method to handle this message. Use the API key to authenticate the websocket connection and store that websocket with your user info for later use
7. If a client sends an invalid API key, return JSON "{ error: true }" to trigger the invalid API key message
8. If using API keys, you should also terminate the websocket of un-authenticated clients and clients who have not attempted to authenticate in 15 seconds
9. To send a notification to a client, send a message to the websocket as follows: "{ request: "SockkiClient-Notification", data: config }"
10. The config object can consist of any property from the localNotification method in the NPM package react-native-push-notification by zo0r